package com.scu.phototabuser.enums;

/**
 * Created by tianfei on 2017/4/8.
 */

public enum AppEnum {

    NULL_OBJECT(0,"空对象"),

    //登录相关
    USER_NOT_FOUND(401, "用户不存在"),
    PASSWORD_ERROR(402,"密码错误"),
    TOKEN_INVALID(403,"Token不合法"),

    ;
    private Integer code;

    private String msg;

    AppEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
